
<div class="layui-row">
    <form class="layui-form">
        <div class="layui-input-inline">
            <select name="drivething_status">
                <option value="">全部状态</option>
                <option value="1" {eq name="$list.drivething_status" value="1"}selected{/eq}>审核中</option>
                <option value="2" {eq name="$list.drivething_status" value="2"}selected{/eq}>已通过</option>
                <option value="3" {eq name="$list.drivething_status" value="3"}selected{/eq}>已拒绝</option>
            </select>
        </div>
        <div class="layui-input-inline" >
            <button class="layui-btn">搜索</button>
        </div>
    </form>

</div>
<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Drivemanage/drivething')}', where:{drivething_status:'{$list.drivething_status}'}, page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'drive_name'}">姓名</th>
        <th lay-data="{field:'drive_tel'}">电话</th>
        <th lay-data="{field:'store_name'}">所属分公司</th>
        <th lay-data="{field:'drivething_type'}">类别</th>
        <th lay-data="{field:'drivething_reason'}">事由</th>
        <th lay-data="{field:'drivething_starttime'}">开始时间</th>
        <th lay-data="{field:'drivething_endtime'}">结束时间</th>
        <th lay-data="{toolbar:'#username'}">审核人</th>
        <th lay-data="{toolbar:'#driveapply_auditortime'}">审核时间</th>
        <th lay-data="{toolbar:'#info',width:180,}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="username">
    {{#  if(d.drivething_status == 1){ }}
    暂无
    {{#  } else if(d.drivething_status == 2){ }}
    {{d.username}}
    {{#  } else if(d.drivething_status == 3){ }}
    {{d.username}}
    {{#  } }}
</script>
<script type="text/html" id="driveapply_auditortime">
    {{#  if(d.drivething_status == 1){ }}
    暂无
    {{#  } else if(d.drivething_status == 2){ }}
    {{d.drivething_auditortime}}
    {{#  } else if(d.drivething_status == 3) { }}
    {{d.drivething_auditortime}}
    {{#  } }}
</script>
<script type="text/html" id="info">
    {{#  if(d.drivething_status == 1){ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs  edit-table ajax-delete delete" data-title="同意申请" data-msg="确认同意？" href="{:url('Drivemanage/agreedriveapply')}?drivething_id={{d.drivething_id}}">同意</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs  edit-table ajax-delete delete" data-title="拒绝申请" data-msg="确认拒绝？" href="{:url('Drivemanage/refusedriveapply')}?drivething_id={{d.drivething_id}}">拒绝</a>
    {{#  } else if(d.drivething_status == 2){ }}
    已同意
    {{#  } else if(d.drivething_status == 3) { }}
    已拒绝
    {{#  } }}
</script>


